﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>
<asp:Content ID="ContentHeader" ContentPlaceHolderID="ContentHeader" runat="server">
<%= Html.Encode(ViewData["Message"]) %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <%
    if (Request.IsAuthenticated) {
%>
        <p>You are logged in as<b> <%= Html.Encode(Page.User.Identity.Name) %></b>&nbsp;
        [<%= Html.ActionLink("Log Off", "LogOff", "Account") %>]</p>
<%
    }
    else {
%> 
        <p>Do you need to <%= Html.ActionLink("Log On", "LogOn", "Account")%>?</p>
<%
    }
%>
</asp:Content>
